extends layout

block content
    link(rel='stylesheet' href='/stylesheets/box.css')
    script isLogin()
    h1 已评分电影

    div(class='border')
        div(class='container')
            each film in jfilms
                div(class="box" )
                    div(class='box-left')
                        a(href="https://www.maoyan.com"+film.fid )
                            img(src=film.img, alt="" width="" height="100%")
                    div(class="box-right")
                        h2= film.name
                        div(class="tags")
                            p= '类别：' + film.tags
                        div(class="space")
                        div(class='actor')
                            p= '主演：' + film.acts.replace("/", " ").replace("/"," ")
                        div(class='time')
                            p= '上映时间：'+film.time
                        div(class='btn-box')
                            button(id='btn' type="submit" onclick="collect("+film.mid+")") 收藏
                            button(id='btn' class='rerank' type="submit" 
                                onclick="rank(" +film.mid+", '"+film.name+"')"
                            ) 分数: #{film.score}
    include navpage.pug

